/*
 * PushRequestMessage.h
 *
 */

#ifndef ACCEPT_MESSAGE_H_
#define ACCEPT_MESSAGE_H_

#include "ariba/ariba.h"

using_serialization;

class AcceptMessage  : public ariba::Message
{
	VSERIALIZEABLE;
public:


	/// Default constructor, required for automatic de-serialization
	AcceptMessage();

	/// Convenient constructor for setting up a new chat message object
	AcceptMessage(bool accept, string key, uint64_t skip);


	string get_key();
	bool get_accept();
	uint64_t get_skip();


private:
	uint8_t accept;
	string key;
	uint64_t skip;
};

sznBeginDefault(AcceptMessage, X)
{
    X && accept && skip && T(key);
} sznEnd();

#endif /* ACCEPT_MESSAGE_H_ */
